<script>
import axios from 'axios'
export default {
    name: 'App',
    data() {
        return {
            count: 100,
            list: []
        }
    },
    mounted(){
        axios('/api/RoomApi/live').then(res => {
            console.log(res);
            this.list = res.data.data
        })
    }
}
</script>
<template>
    <div>
        <h1>vue + webpack + {{ count }}</h1>
        <button @click="count++">点击增加</button>
        
        <ol>
            <li v-for="item in list" :key="item.room_id">
                <img :src="item.room_src" alt="" style="width: 100px;">    
                {{ item.room_name }} 
            </li>
        </ol>
    </div>
</template>
